<template>
  <div id="app">
    <!-- 通顶区域 -->
    <Tabbar></Tabbar>
    <!-- 头部导航区域 -->
    <Header></Header>
    <!-- 中间内容区域 -->
    <router-view/>
    <!-- 尾部 -->
    <Footer></Footer>
	
	<Login v-show="isshowLoginModel"></Login>
  </div>
</template>

<script>
import Tabbar from './components/Tabbar.vue'
import Header from './components/Header.vue'
import Footer from './components/Footer.vue'
import Login from './components/Login.vue'
import { mapState } from 'vuex'
export default {
  components:{
    Tabbar,Header,Footer,Login
  },
  computed:{
	  // isshowLoginModel(){
		 //  return this.$store.state.showLoginModel.isshowLoginModel
	  // }
	  
	  ...mapState({
		  isshowLoginModel:state=>state.showLoginModel.isshowLoginModel
	  })
  }
}
</script>

<style lang="less">
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  
  color: #2c3e50;
}

</style>
